package com.tgpms.web.earlierStage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;

/**
 * <p>
 * 文档版本信息表
 * </p>
 *
 * @author newway
 * @since 2020-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("DOC_UPLOAD_ENTITY_HISTORY")
@ApiModel(value="DocUploadEntityHistory对象", description="文档版本信息表")
public class DocUploadEntityHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "ID" , type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "工程编码")
    @TableField(value = "PROJECT_ID")
    private String projectId;

    @ApiModelProperty(value = "文档实体id")
    @TableField(value = "DOC_ID")
    private String docId;

    @ApiModelProperty(value = "文档名字")
    @TableField(value = "DOC_NAME")
    private String docName;

    @ApiModelProperty(value = "文档路径")
    @TableField(value = "FILE_PATH")
    private String filePath;

    @ApiModelProperty(value = "上传时间")
    @TableField(value = "UPLOAD_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date uploadDate;

    @ApiModelProperty(value = "上传用户")
    @TableField(value = "UPLOAD_USER")
    private String uploadUser;

    @ApiModelProperty(value = "文档版本")
    @TableField(value = "DOC_VERSION")
    private Integer docVersion;

    @ApiModelProperty(value = "服务器上文件名称")
    @TableField(value = "NEW_DOC_NAME")
    private String newDocName;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "MODIFY_USER")
    private String modifyUser;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "MODIFY_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    @ApiModelProperty(value = "指定用户")
    @TableField(value = "TO_USERS")
    private String toUsers;

    @ApiModelProperty(value = "指定用户组")
    @TableField(value = "TO_GROUPS")
    private String toGroups;

    @ApiModelProperty(value = "数据拥有者")
    @TableField(value = "DATA_OWNER")
    private String dataOwner;

    @ApiModelProperty(value = "此字段同业务表的主键保持一致")
    @TableField(value = "ROWSTAMP")
    private String rowstamp;

    @ApiModelProperty(value = "文件大小")
    @TableField(value = "FILE_SIZE")
    private Long fileSize;


}